package fr.iut2.tc1.shared;

public class Race 
{
	private String nom;
	private Competence competence1;
	private Competence competence2;
	
	public Race(String nom)
	{
		this.nom=nom;
		
		if(this.nom.compareTo("Skrim")==0)
		{
			competence1 = new Competence("Botte Secrète");
			competence2 = new Competence("Hypnotisme");
		}
		else if(this.nom.compareTo("Kastar")==0)
		{
			competence1 = new Competence("Accélération Métabolique");
			competence2 = new Competence("Connaissance des Montres");
		}
		else if(this.nom.compareTo("Durakuir")==0)
		{
			competence1 = new Competence("Régénération Accrue");
			competence2 = new Competence("Rafale Psychique");
		}
		else if(this.nom.compareTo("Tomawak")==0)
		{
			competence1 = new Competence("Camouflage");
			competence2 = new Competence("Projectile Magique");
		}
		//Darkling
		else
		{
			competence1 = new Competence("Balayage");
			competence2 = new Competence("Siphon des âmes");
		}
	}
	
	//Retourne les compétences liée la race
	public Competence[] getCompetence()
	{
		return new Competence[]{competence1,competence2};
	}
	
	public String getNom()
	{
		return this.nom;
	}
	public static String[] getRaces()
	{
		return new String[]{"Skrim","Kastar","Durakuir","Tomawak","Darkling"};
	}
	
	public static String[] getRacesPlusAll()
	{
		return new String[]{"Skrim","Kastar","Durakuir","Tomawak","Darkling","All"};
	}
}
